/**
 * 
 */
package com.cait.dutyfree.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Rasika Kaluwalgoda
 * 
 */
@Entity
@Table(name = "alerts")
public class Alert implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7100100235881097764L;

	private Integer id;
	private Date raisedOn;
	private String message;
	private String remark;

	private Integer status; // 0 - Unread, 1 - Read, 2 - removed
	private Boolean emailStatus; // 0 - not send, 1 - sent

	/**
	 * @return the alertId
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	/**
	 * @param alertId
	 *            the alertId to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the raisedOn
	 */
	public Date getRaisedOn() {
		return raisedOn;
	}

	/**
	 * @param raisedOn
	 *            the raisedOn to set
	 */
	public void setRaisedOn(Date raisedOn) {
		this.raisedOn = raisedOn;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * @param remark
	 *            the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return the status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the emailStatus
	 */
	public Boolean getEmailStatus() {
		return emailStatus;
	}

	/**
	 * @param emailStatus
	 *            the emailStatus to set
	 */
	public void setEmailStatus(Boolean emailStatus) {
		this.emailStatus = emailStatus;
	}

}
